// 一级路由
import HomePage from '@/views/homePage.vue'
import LookForHousing from '@/views/lookForHousing.vue'
// 二级路由
import ConTent from '@/views/seconds/conTent.vue'

import InForMation from '@/views/inForMation.vue'
import User from '@/views/user.vue'
import Login from '@/views/login.vue'
import Register from '@/views/register.vue'

const routes = [
  {
    path: '/',
    // 重定向
    redirect: '/homePage'
  },
  {
    path: '/homePage',
    name: 'homePage',
    component: HomePage
  },
  {
    path: '/lookForHousing',
    component: LookForHousing,
    childern: [
      {
        path: 'conTent',
        component: ConTent
      }
    ]
  },
  {
    path: '/inForMation',
    component: InForMation
  },
  {
    path: '/user',
    component: User
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  }
]

export default routes
